'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function ReadFunction(Of TValue)( _ ByVal dataVariable As UADataVariable, _ ByVal readFunction As Func(Of UAAttributeData(Of TValue)), _ ByVal ParamArray arrayDimensions() As Integer _ ) As UADataVariable
'UsageDim dataVariable As UADataVariable Dim readFunction As Func(Of UAAttributeData(Of TValue)) Dim arrayDimensions() As Integer Dim value As UADataVariable value = UADataVariableExtension.ReadFunction(Of TValue)(dataVariable, readFunction, arrayDimensions)
[Extension()] [JetBrains.Annotations.NotNull()] public static UADataVariable ReadFunction<TValue>( UADataVariable dataVariable, Func<UAAttributeData<TValue>> readFunction, params int[] arrayDimensions )
[Extension()] [JetBrains.Annotations.NotNull()] public: static UADataVariable^ ReadFunctiongeneric<typename TValue> ( UADataVariable^ dataVariable, Func<UAAttributeData<TValue^>^>^ readFunction, ... array<int>^ arrayDimensions )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null(Nothingin Visual Basic). - readFunction
- The read function, i.e. the function that performs the read operation and returns the attribute data that will be returned to the caller of the OPC UA Read.
The value of this parameter cannot be
null(Nothingin Visual Basic). - arrayDimensions
- The size of each dimension of the array value.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- TValue
- The type of the value of the data variable.
Return Value
This method never returns null (Nothing in Visual Basic).